package com.ruoyi.datastatistics.mapper;

import com.ruoyi.datastatistics.domain.ElectricityRealtimegatherdataXb;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.datastatistics.domain.ElectricityRealtimegatherdataXb;
import com.ruoyi.datastatistics.vo.XbDatabase;
import com.ruoyi.datastatistics.vo.XbDatabaseVO;
import com.ruoyi.datastatistics.wxentity.WXRealtimegatherdataXb;
import com.ruoyi.framework.config.MyBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 电-历史数据Mapper接口
 *
 * @author gdqt
 * @date 2025-03-10
 */
public interface ElectricityRealtimegatherdataXbMapper extends MyBaseMapper<ElectricityRealtimegatherdataXb>
{
    /**
     * 查询实时数据采集（小）
     *
     * @param TerminalID 实时数据采集（小）主键
     * @return 实时数据采集（小）
     */
    public ElectricityRealtimegatherdataXb selectRealtimegatherdataXbByTerminalID(String TerminalID);

    /**
     * 查询实时数据采集（小）列表
     *
     * @param realtimegatherdataXb 实时数据采集（小）
     * @return 实时数据采集（小）集合
     */
    public List<ElectricityRealtimegatherdataXb> selectRealtimegatherdataXbList(ElectricityRealtimegatherdataXb realtimegatherdataXb);

    /**
     * 删除实时数据采集（小）
     *
     * @param TerminalID 实时数据采集（小）主键
     * @return 结果
     */
    public int deleteRealtimegatherdataXbByTerminalID(String TerminalID);


    public Long selectListCountByParams(ElectricityRealtimegatherdataXb electricityRealtimegatherdataXb);


    /**
     * 批量删除实时数据采集（小）
     *
     * @param TerminalIDs 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRealtimegatherdataXbByTerminalIDs(String[] TerminalIDs);

    List<ElectricityRealtimegatherdataXb> selectRealtimegatherdataXbList2(ElectricityRealtimegatherdataXb realtimegatherdataXb);
    List<ElectricityRealtimegatherdataXb> selectList(ElectricityRealtimegatherdataXb realtimegatherdataXb);

    /**
     * 根据terminalId和tenantId查找户表实时数据
     *
     * @param terminalId 设备编号
     * @param tenantId   客户编号
     * @return 户表实时数据
     */
    ElectricityRealtimegatherdataXb selectRealtimeDataByTerminalIdAndTenantId(@Param("terminalId") String terminalId, @Param("tenantId") String tenantId);

    public List<ElectricityRealtimegatherdataXb> selectRealtimegatherdataXbListForJob(ElectricityRealtimegatherdataXb realtimegatherdataXb);

}
